<template>
  <div class="book-detail">
    <div class="class-header">
      <div class="header-nav">
        <div class="header-nav-left">
          <router-link to="/">
            <img
              src="../img/logo.png"
              alt
            >
            <span>80教育商城</span>
          </router-link>
        </div>
        <div class="header-nav-right">
          <ul class="header-nav-right-list">
            <router-link to="/Search">
              <li>
                <i class="iconfont icon-search"></i>
              </li>
              <li>
                <span class="search">搜索</span>
              </li>
            </router-link>
            <li>
              <span>会员中心</span>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div
      v-for="(list,index) in list"
      :key="index"
    >
      <div class="book-detail-content-wp">
        <div class="swiper-container content-banner-wp">
          <ul
            class="swiper-wrapper content-banner clearfixed"
            ref="mySwiper"
          >
            <li class="swiper-slide">
              <img
                src="../img/bookdetail5.jpg"
                alt
              >
            </li>
            <li class="swiper-slide">
              <img
                src="../img/bookdetail4.jpg"
                alt
              >
            </li>
            <li class="swiper-slide">
              <img
                src="../img/bookdetail3.jpg"
                alt
              >
            </li>
          </ul>
          <div class="pagination"></div>
        </div>

        <div class="book-detail-info-wp">
          <div class="book-detail-name">{{list.name}}</div>
          <div class="book-detail-toolbtns">
            <div class="book-detail-share">
              <div>
                <i class="iconfont icon-share"></i>
              </div>
              <div>分享</div>
            </div>
            <div class="book-detail-collect">
              <div>
                <i class="iconfont icon-collection"></i>
              </div>
              <div>收藏</div>
            </div>
          </div>
          <div class="book-detail-price-wp">
            <div>
              <span class="book-detail-price">￥{{list.price}}</span>
            </div>
            <div class="book-detail-discount">
              市场价：
              <span>￥{{list.oldprice}}</span>
            </div>
          </div>
        </div>

        <div class="book-detail-tab-wp">
          <mu-tabs
            :value.sync="active1"
            inverse
            color="#333"
            indicator-color="#3285ff"
            text-color="#999"
            center
          >
            <mu-tab>产品详情</mu-tab>
            <mu-tab>产品参数</mu-tab>
            <mu-tab>产品评论</mu-tab>
          </mu-tabs>
          <div
            class="demo-text"
            v-if="active1 === 0"
          >
            <div
              class="richContent productDetailInfoPanel g_defaultColor"
              style="padding:0 10px"
            >
              <p style="line-height:40px;">
                <span style="font-size:18px;color:#ff0000;background-color:#ffffff">预售，仅200套，3.30号左右发货~</span>
              </p>
              <p style="color:#666666;line-height:40px;">
                <strong>
                  <span style="font-size:16px">特色：</span>
                </strong>
              </p>
              <p style="color:#666666;line-height:40px;">
                <strong>
                  <span style="font-size:18px">{{list.tese}}</span>
                </strong>
              </p>
              <p style="color:#666666;line-height:40px;">
                <strong>
                  <span style="font-size:18px">优惠活动：</span>
                </strong>
                <br>
              </p>
              <p style="color:#666666;line-height:40px;">
                <strong>
                  <span style="font-size:18px">{{list.youhui}}</span>
                </strong>
              </p>
            </div>
          </div>
          <div
            class="demo-text"
            v-if="active1 === 1"
          >
            <div class="propInfo">
              <div class="propInfoRow">
                <div class="propName propInfoCell">编号</div>
                <div class="propValue propInfoCell">{{list.bianhao}}</div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">类型</div>
                <div class="propValue propInfoCell">{{list.leixing}}</div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">规格</div>
                <div class="propValue propInfoCell">{{list.guige}}</div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">材质</div>
                <div class="propValue propInfoCell">{{list.caizhi}}</div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">颜色</div>
                <div class="propValue propInfoCell">{{list.color}}</div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">品牌</div>
                <div class="propValue propInfoCell">{{list.pinpai}}</div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">型号</div>
                <div class="propValue propInfoCell">{{list.xinghao}}</div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">市场价</div>
                <div class="propValue propInfoCell">
                  <span class="marketPrice g_defaultColor">￥{{list.oldprice}}</span>
                </div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">价格</div>
                <div class="propValue propInfoCell">
                  <span class="mallPrice g_defaultColor">￥{{list.price}}</span>
                </div>
              </div>
              <div class="propInfoRow">
                <div class="propName propInfoCell">销量</div>
                <div class="propValue propInfoCell">{{list.xiaoliang}}</div>
              </div>
            </div>
          </div>
          <div
            class="demo-text"
            v-if="active1 === 2"
          >
            <div style="min-height:45px"></div>
          </div>
        </div>
        <div class="mProductList">
          <div class="mProductListTitle">推荐产品</div>
          <div
            class="productSlide"
            style="margin-top: 30px; overflow-x: auto;"
          >
            <div
              class="productSlideList clearfixed"
              style="width:1300px"
            >
              <div
                productname="2019基础全程班学员赠送资料"
                class="productCrossedSlideSec"
              >
                <div class="CrossedSlideSecImg">
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/2/3/ABUIABACGAAglbfm4QUoy5_-gQMw0AU4mwQ!450x450.jpg&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >2019基础全程班学员赠送资料</p>
                  </div>
                </div>
                <span class="mallPrice">￥9.90</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productname="2019注册环保工程师专业考试真题及解析-年度版"
                class="productCrossedSlideSec"
              >
                <div class="CrossedSlideSecImg">
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/2/3/ABUIABACGAAgnZrn4QUozLbUtQYwyQU48AU!450x450.jpg&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >2019注册环保工程师专业考试真题及解析-年度版</p>
                  </div>
                </div>
                <span class="mallPrice">￥198.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productid="16"
                productname="2019动力专业案例真题解析-年度版"
                class="productCrossedSlideSec"
              >
                <div class="CrossedSlideSecImg">
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/2/3/ABUIABACGAAgosHg4QUo-tOAlwQwoAY4oAY!450x450.jpg&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >2019动力专业案例真题解析-年度版</p>
                  </div>
                </div>
                <span class="mallPrice">￥70.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productid="72"
                productname="【学员专用】2019年供配电专业案例真题（2本）"
                class="productCrossedSlideSec"
                id="productCrossedSlideSec72_module18"
              >
                <div
                  class="CrossedSlideSecImg"
                  id="CrossedSlideSecImg72module18"
                >
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/2/3/ABUIABACGAAgqsnx4QUopLqU2AcwoAY4oAY!450x450.jpg&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >【学员专用】2019年供配电专业案例真题（2本）</p>
                  </div>
                </div>
                <span class="mallPrice">￥50.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productid="67"
                productname="【学员专用】2019年供配电专业真题解析【章节+年份】4本"
                class="productCrossedSlideSec"
                id="productCrossedSlideSec67_module18"
              >
                <div class="CrossedSlideSecImg">
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/2/3/ABUIABACGAAgrMzx4QUokryb7AEwoAY4oAY!450x450.jpg&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >【学员专用】2019年供配电专业真题解析【章节+年份】4本</p>
                  </div>
                </div>
                <span class="mallPrice">￥100.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productid="13"
                productname="2019注册环保工程师专业考试真题及解析（大气方向）-章节版"
                class="productCrossedSlideSec"
                id="productCrossedSlideSec13_module18"
              >
                <div
                  class="CrossedSlideSecImg"
                  id="CrossedSlideSecImg13module18"
                >
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/2/3/ABUIABACGAAg76zN4QUo6Ja2lgQwggQ4ggQ!450x450.jpg&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >2019注册环保工程师专业考试真题及解析（大气方向）-章节版</p>
                  </div>
                </div>
                <span class="mallPrice">￥58.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productid="47"
                productname="2019注册环保工程师专业考试规范标准-补充汇编"
                class="productCrossedSlideSec"
                id="productCrossedSlideSec47_module18"
              >
                <div class="CrossedSlideSecImg">
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/4/3/ABUIABAEGAAggKLn4QUou9npqAQw_QU49AU!450x450.png&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >2019注册环保工程师专业考试规范标准-补充汇编</p>
                  </div>
                </div>
                <span class="mallPrice">￥128.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productid="10"
                productname="2019勘察设计注册工程师公共基础真题及解析"
                class="productCrossedSlideSec"
                id="productCrossedSlideSec10_module18"
              >
                <div
                  class="CrossedSlideSecImg"
                  id="CrossedSlideSecImg10module18"
                >
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/2/3/ABUIABACGAAg1o7h4QUopqXK0QIwoAY4oAY!450x450.jpg&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >2019勘察设计注册工程师公共基础真题及解析</p>
                  </div>
                </div>
                <span class="mallPrice">￥48.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productid="48"
                productname="2019注册环保工程师专业考试空白真题-年度版+章节版"
                class="productCrossedSlideSec"
                id="productCrossedSlideSec48_module18"
              >
                <div
                  class="CrossedSlideSecImg"
                  id="CrossedSlideSecImg48module18"
                >
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/4/3/ABUIABAEGAAg06Tn4QUogZLgvQcw9wU49wU!450x450.png&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >2019注册环保工程师专业考试空白真题-年度版+章节版</p>
                  </div>
                </div>
                <span class="mallPrice">￥198.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
              <div
                productid="56"
                productname="2019注册水利水电工程师专业基础教材"
                class="productCrossedSlideSec"
                id="productCrossedSlideSec56_module18"
              >
                <div
                  class="CrossedSlideSecImg"
                  id="CrossedSlideSecImg56module18"
                >
                  <div style="background: url(&quot;//13323315.s21i.faiusr.com/2/3/ABUIABACGAAg--Dy4QUouMiTejCgBjigBg!450x450.jpg&quot;) center center / cover no-repeat; height: 120px;"></div>
                  <div class="paramCollection">
                    <p
                      class="g_text paramName g_displayClamp2 proNameToNewStyle paramWrap"
                      style="line-height: 15px; height: 28px;"
                    >2019注册水利水电工程师专业基础教材</p>
                  </div>
                </div>
                <span class="mallPrice">￥60.00</span>&nbsp;&nbsp;&nbsp;&nbsp;
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="book-detail-bottom-wp">
        <div class="book-detail-bottom">
          <div>
            <router-link to="/">
              <div>
                <i class="iconfont icon-homepage"></i>
              </div>
              <div>首页</div>
            </router-link>
          </div>
          <div>
            <div>
              <i class="iconfont icon-customerservice"></i>
            </div>
            <div>客服</div>
          </div>
          <div>
            <div @click="goCarFn">
              <i class="iconfont icon-publishgoods_fill"></i>
            </div>
            <div class="shopCar-wp">
              <span
                class="shopCar-text"
                v-if="count"
              >{{count}}</span> 购物车
            </div>
          </div>
          <div
            class="book-detail-bottom-btns"
            @click="joinCarFn"
          >加入购物车</div>
          <div
            class="book-detail-bottom-btns"
            style="background: #3285ff;"
            @click="buyShop"
          >立即购买</div>
        </div>
      </div>

      <div
        class="marsk"
        v-if="model"
      >
        <div class="marskbox">
          <div class="marsk-title">
            <div class="detailimg">
              <img
                src="../img/book3.jpg"
                alt
              >
            </div>
            <div class="detailword">
              <p>{{list.name}}</p>
              <span>
                ￥
                <span>{{list.price}}</span>
              </span>
            </div>
            <i
              class="iconfont icon-delete_fill"
              @click="model=false"
            ></i>
          </div>
          <div class="marsk-millde">
            <span class="bynum">购买数量</span>
            <div class="shul">
              <i
                class="iconfont icon-jianhaoshouqi"
                @click="buyCountFn"
              ></i>
              <input
                type="text"
                class="buynum-text"
                v-model="buyNum"
              >
              <i
                class="iconfont icon-jiahaozhankai"
                @click="buyNum++"
              ></i>
            </div>
          </div>
          <div
            class="marsk-footer"
            @click="savebtn"
          >确认</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { createNamespacedHelpers } from "vuex";
const { mapState, mapMutations, mapActions } = createNamespacedHelpers(
  "bookdetail"
);
import session from "../util/session";
import Swiper from "swiper";
import { MessageBox } from "mint-ui";
import "swiper/dist/css/swiper.min.css";
export default {
  data() {
    return {
      activeName: "second",
      active1: 0,
      model: false,
      item: {},
      buyNum: 1,
      isBuy: false
    };
  },
  computed: {
    ...mapState(["list", "count", "shoplist"])
  },
  mounted() {
    this.unitSwiper();
    this.render(this.$route.params.par);
    this.getShopNum();
  },
  methods: {
    ...mapActions([
      "getlist",
      "saveShop",
      "getShopNum",
      "getShopcar",
      "updateShop",
      "postShop"
    ]),
    buyCountFn() {
      if (this.buyNum > 1) {
        this.buyNum--;
      }
    },
    goCarFn() {
      if (session.isLogin()) {
        this.$router.push("/ShopCar");
      } else {
        MessageBox.alert("请先登录!").then(action => {
          this.$router.push("/login");
        });
      }
    },
    joinCarFn() {
      if (session.isLogin()) {
        this.buyNum = 1;
        this.model = true;
        this.isBuy = false;
      } else {
        MessageBox.alert("请先登录!").then(action => {
          this.$router.push("/login");
        });
        return;
      }
    },
    buyShop() {
      if (session.isLogin()) {
        this.buyNum = 1;
        this.model = true;
        this.isBuy = true;
      } else {
        MessageBox.alert("请先登录!").then(action => {
          this.$router.push("/login");
        });
        return;
      }
    },
    savebtn() {
      if (!this.isBuy) {
        var aa = true;
        this.item.uid = session.get().id;
        this.item.goodsid = this.$route.params.par;
        this.item.goodsname = this.list[0].name;
        this.item.price = this.list[0].price;
        this.item.num = this.buyNum;
        this.getShopcar(session.get().id).then(() => {
          if (this.shoplist.length == 0) {
            this.saveShop(this.item).then(() => {
              this.getShopNum();
              this.model = false;
            });
          } else {
            this.shoplist.filter(k => {
              if (k.goodsid == this.$route.params.par) {
                this.item.id = k.id;
                this.item.num = k.num * 1 + this.item.num * 1;
                this.updateShop(this.item).then(() => {
                  this.getShopNum();
                  this.model = false;
                });
              } else {
                if (aa) {
                  aa = false;
                  this.saveShop(this.item).then(() => {
                    this.getShopNum();
                    this.model = false;
                  });
                }
              }
            });
          }
        });
      } else {
        let obj = {};
        let params = {};
        let id = this.$route.params.par;
        for (var i = 0; i < this.list.length; i++) {
          if (id == this.list[i].id) {
            obj = this.list[i];
          }
        }
        params.uid = session.get().id;
        params.goodsid = obj.id;
        params.goodsname = obj.name;
        params.price = obj.price;
        params.num = this.buyNum;
        this.postShop(params).then(data => {
          let array = [];
          array.push(data);
          this.$router.push({ name: "ordercommit", params: { id: array } });
        });
      }
    },
    unitSwiper() {
      var mySwiper = new Swiper(".swiper-container", {
        autoplay: true,
        speed: 300,
        loop: true,
        pagination: ".pagination" // 分页器类名
      });
    },
    render(id) {
      this.getlist(id);
    }
  }
};
</script>

<style scoped>
.shopCar-wp {
  position: relative;
}
.shopCar-text {
  display: inline-block;
  position: absolute;
  top: -27px;
  right: 7px;
  width: 17px;
  height: 17px;
  color: #fff;
  line-height: 17px;
  border-radius: 50%;
  text-align: center;
  background-color: #3285ff;
}
.shul {
  position: absolute;
  right: 30px;
}
.shul span {
  font-size: 18px;
  color: #7e7e7e;
}
.shul .iconfont {
  font-size: 20px;
}
.bynum {
  position: absolute;
  left: 15px;
}
.buynum-text {
  width: 32px;
  height: 26px;
  text-align: center;
  font-size: 16px;
  vertical-align: initial;
  border: none;
  outline: none;
  color: #333;
}
.marsk-footer {
  background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#56c4e7),
    to(#3285ff)
  );
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: #fff;
}
.marsk-millde {
  height: 59px;
  line-height: 59px;
  position: relative;
}
.icon-delete_fill {
  position: absolute;
  right: 5px;
  font-size: 25px;
  color: #7b7e83;
}
.detailword span {
  color: #3285ff;
}
.detailword {
  float: right;
  width: 47%;
  font-size: 13px;
  margin-right: 35px;
  margin-top: 7px;
}
.detailword p {
  line-height: 18px;
  margin-bottom: 5px;
}
.marsk-title {
  border-bottom: 1px solid #ccc;
  height: 105px;
}
.detailimg {
  float: left;
  width: 110px;
  height: 110px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 15px 5px;
  text-align: center;
  background: #fff;
  position: relative;
  top: -17px;
  left: 15px;
}
.detailimg img {
  width: 96px;
}
.marskbox {
  height: 204px;
  background: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  transition: bottom 1.5s linear;
}
.bottomtran {
  bottom: 0;
}
.marsk {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
}
.productSlide::-webkit-scrollbar {
  display: none;
}
.mProductList {
  margin-top: 10px;
  background-color: #fff;
}
.mProductListTitle {
  color: #333;
  font-size: 12px;
  border-top: 1px solid #f0f0f0;
  height: 40px;
  line-height: 40px;
  padding-left: 9px;
}
.photoCrossedSlideSec,
.productCrossedSlideSec {
  margin-bottom: 10px;
  margin-left: 10px;
  width: 120px;
  line-height: 18px;
  border-radius: 4px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  overflow: hidden;
  float: left;
  background: #fff;
  margin-top: 1px;
}
.paramName {
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  overflow: hidden;
}
.CrossedSlideSecImg {
  position: relative;
}
.paramCollection {
  height: 34px;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  width: 100%;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  bottom: 0;
  padding-left: 10px;
}
.productCrossedSlideSec .mallPrice {
  font-size: 14px;
  height: 28px;
  line-height: 28px;
  margin-top: 6px;
  color: #3285ff;
}

.propInfo {
  width: 100%;
  display: table;
  border-collapse: collapse;
}
.propInfoRow {
  border-color: #ebebeb;
  border-bottom: 1px solid #ddd;
  display: table-row;
  text-align: left;
}
.propInfoCell {
  height: 45px;
  color: #666;
  font-size: 11px;
  word-break: break-word;
  display: table-cell;
  vertical-align: middle;
  padding-left: 10px;
}
.propName {
  width: 33%;
  text-indent: 0;
  padding: 0 5px 0 25px;
  font-size: 11px;
  color: #999;
}

.book-detail-bottom {
  display: flex;
  height: 100%;
  text-align: center;
  font-size: 10px;
  color: #666;
}
.book-detail-bottom > div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #ebebeb;
}
.book-detail-bottom-btns {
  width: 17.8%;
  border-right: 0 !important;
  margin: 0;
  color: #fff;
  background: #10c5fe;
  font-size: 12px;
}
.book-detail-bottom > div i {
  font-size: 23px;
}
.book-detail-bottom-wp {
  height: 50px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  z-index: 100;
  max-width: 768px;
  border-top: 1px solid #ebebeb;
  margin: 0 auto;
}
.book-detail-tab-wp {
  margin-top: 10px;
  min-height: 80px;
  background-color: #fff;
}
.book-detail-discount {
  color: #999;
  font-size: 9px;
  padding: 0 0 10px 10px;
}
.book-detail-discount span {
  text-decoration: line-through;
}
.book-detail-price {
  color: #3285ff;
  height: 32px;
  line-height: 32px;
  font-size: 18px;
  padding-left: 10px;
}
.book-detail-toolbtns {
  max-width: 26%;
  height: 34px;
  float: right;
  width: 26%;
  display: flex;
}
.book-detail-toolbtns > div {
  flex-grow: 1;
  text-align: center;
  font-size: 9px;
  color: #666;
}
.book-detail-info-wp {
  padding: 16px 10px 0 10px;
  background-color: #fff;
}
.book-detail-name {
  display: inline-block;
  width: 70%;
  height: 34px;
  line-height: 18px;
  font-size: 13px;
  color: #333;
  word-break: break-all;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: 1px solid #ebebeb;
}
.content-banner-wp {
  width: 100%;
  height: 320px;
  background-color: antiquewhite;
  overflow: hidden;
}
.content-banner-wp img {
  width: 100%;
  height: 100%;
}
.book-detail-content-wp {
  margin-bottom: 50px;
}
.book-detail {
  max-width: 768px;
}
</style>
